#include "bflb_mtimer.h"
#include "board.h"
#include "bflb_gpio.h"
#include "lcd\lcd_init.h"
#include "lcd\lcd.h"
#include "lcd\pic.h"

int main(void)
{
    uint8_t i, j;
    float t = 0;
    board_init();
    LCD_Init();
    LCD_Fill(0, 0, LCD_W, LCD_H, WHITE);
    while (1)
    {

        LCD_ShowString(0, 40, "LCD_W:", RED, WHITE, 16, 0);
        LCD_ShowIntNum(48, 40, LCD_W, 3, RED, WHITE, 16);
        LCD_ShowString(80, 40, "LCD_H:", RED, WHITE, 16, 0);
        LCD_ShowIntNum(128, 40, LCD_H, 3, RED, WHITE, 16);
        LCD_ShowString(80, 40, "LCD_H:", RED, WHITE, 16, 0);
        LCD_ShowString(0, 70, "Increaseing Nun:", RED, WHITE, 16, 0);
        LCD_ShowFloatNum1(128, 70, t, 4, RED, WHITE, 16);
        t += 0.11;
        for (j = 0; j < 7; j++)
        {
            for (i = 0; i < 8; i++)
            {
                LCD_ShowPicture(40 * i, 200 + j * 40, 40, 40, gImage_1);
            }
        }
        bflb_mtimer_delay_ms(5000);
    }
}
